/**
 * Copyright &copy; 2016-2017 <a href="https://www.lczyfz.com">联创智云</a> All rights reserved.
 */
package com.lczyfz.campusinfo.modules.wechatmsg.service;

import java.util.List;

import com.lczyfz.campusinfo.modules.user.utils.ServerResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lczyfz.campusinfo.common.persistence.Page;
import com.lczyfz.campusinfo.common.service.CrudService;
import com.lczyfz.campusinfo.modules.wechatmsg.entity.WeixinUserGroup;
import com.lczyfz.campusinfo.modules.wechatmsg.dao.WeixinUserGroupDao;

/**
 * 微信用户组别Service
 * @author 陈维乾
 * @version 2018-05-06
 */
@Service
@Transactional(readOnly = true)
public class WeixinUserGroupService extends CrudService<WeixinUserGroupDao, WeixinUserGroup> {

	@Autowired
	private WeixinUserGroupDao weixinUserGroupDao;

	public WeixinUserGroup get(String id) {
		return super.get(id);
	}
	
	public List<WeixinUserGroup> findList(WeixinUserGroup weixinUserGroup) {
		return super.findList(weixinUserGroup);
	}
	
	public Page<WeixinUserGroup> findPage(Page<WeixinUserGroup> page, WeixinUserGroup weixinUserGroup) {
		return super.findPage(page, weixinUserGroup);
	}
	
	@Transactional(readOnly = false)
	public void save(WeixinUserGroup weixinUserGroup) {
		super.save(weixinUserGroup);
	}
	
	@Transactional(readOnly = false)
	public void delete(WeixinUserGroup weixinUserGroup) {
		super.delete(weixinUserGroup);
	}

	public int isUniqueness(WeixinUserGroup weixinUserGroup){
		return weixinUserGroupDao.isUniqueness(weixinUserGroup);
	}

	public List<String> getListByGroupName(String str){
		return weixinUserGroupDao.getListByGroupName(str);
	}

}